<?php
$caption = BUtils::T('login_lbl');
$this->pageTitle = Yii::app()->name . ' - ' . $caption;
?>
<div class="container prepend-top append-bottom">
	<div class="span-10 prepend-2">
		<div class="box_white append-bottom">
			<div class="biz-form margin">
				<h3><?php echo BUtils::T('yb_why_use_lbl'); ?></h3>
				<div class="tips"><?php echo BUtils::T('yb_why_use_eg'); ?></div>
				<ul class="line">
					<li>
						<b><?php echo BUtils::T('yb_why_use_t1'); ?></b>
						<br />
						<span><?php echo BUtils::T('yb_why_use_t1_eg'); ?></span>
					</li>
					<li>
						<b><?php echo BUtils::T('yb_why_use_t2'); ?></b>
						<br />
						<span><?php echo BUtils::T('yb_why_use_t2_eg'); ?></span>
					</li>
					<li>
						<b><?php echo BUtils::T('yb_why_use_t3'); ?></b>
						<br />
						<span><?php echo BUtils::T('yb_why_use_t3_eg'); ?></span>
					</li>
				</ul>
				<div style="text-align:right;">
					<a class="button button-huge button-confirm" href="<?php echo Yii::app()->createUrl('/help/about'); ?>">
						<span><?php echo BUtils::T('learn_more_lbl'); ?></span>
					</a>
				</div>
			</div>
		</div>
		
		<div class="box_white append-bottom">
			<div class="biz-form margin" style="text-align:center;">
				<h3><?php echo BUtils::T('yb_app_merchant_msg'); ?></h3>
				<br />
				<div class="tips">
					<a href="https://itunes.apple.com/fi/app/yamii-for-business/id593346524" target="_blank"><img src="<?php echo Yii::app()->baseUrl; ?>/images/app-store-icon.png" alg="app store"></a>
					<a href="https://play.google.com/store/apps/details?id=com.yamii.business.android" target="_blank"><img src="<?php echo Yii::app()->baseUrl; ?>/images/google-play-icon.png" alg="google play"></a>
				</div>
			</div>
		</div>
	</div>
	
	<div class="span-10 prepend-1 last">
		<div class="box_white append-bottom">
		<div class="biz-form">
			<div class="margin">
				<h3><?php echo $caption; ?></h3>
			</div>
			
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'login-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
)); ?>

<div class="fieldswrap">
<div class="fields">
	<div class="block">
		<div class="lbl"><?php echo $form->labelEx($model,'email'); ?></div>
		<div class="ipt">
			<?php echo $form->textField($model,'email', array('class'=>'auto')); ?>
			<?php echo $form->error($model,'email'); ?>
		</div>
	</div>
	<div class="block">
		<div class="lbl"><?php echo $form->labelEx($model,'password'); ?></div>
		<div class="ipt">
			<?php echo $form->passwordField($model,'password', array('class'=>'auto')); ?>
			<?php echo $form->error($model,'password'); ?>
		</div>
	</div>
	<div class="inline rememberMe">
		<div class="ipt">
			<?php echo $form->checkBox($model,'rememberMe'); ?>
			<?php echo $form->label($model,'rememberMe'); ?>
			<?php echo $form->error($model,'rememberMe'); ?>
		</div>
	</div>
</div><!-- end of .fields -->
</div><!-- end of .fieldswrap -->

	<div class="margin actions">
		<?php echo CHtml::submitButton($caption, array('class' => 'button button-huge button-confirm')); ?>
		<?php echo CHtml::link('<span>'.BUtils::T('signup_lbl').'</span>', Yii::app()->createUrl($this->id . '/register'), array('class' => 'button button-huge button-thin button-compliment')); ?>
	</div>

	<div class="block" style="margin-top:10px;">
		<div class="ipt" style="text-align:right;">
			<?php echo CHtml::link(BUtils::T('password_find_caption_lbl'), Yii::app()->createUrl('/accounts/passwordFind')); ?>
		</div>
	</div>

<?php $this->endWidget(); ?>
			
		</div><!-- end of <div class="biz-form"> -->
		</div>
		
		<div class="box_white append-bottom none">
			<div class="biz-form margin" style="background:#FFE9AD;">
				<h3>
<?php
if (time() < mktime(0, 0, 0, 6, 1, 2013))
	echo BUtils::T('yb_promotion_msg');
else echo BUtils::T('yb_promotion2_msg');
?>
				</h3>
			</div>
		</div>
		
		<div class="box_white append-bottom">
			<div class="biz-form margin">
				<div class="left" style="margin-right:12px;">
					<a href="http://yamii.fi" target="_blank"><img src="<?php echo Yii::app()->baseUrl; ?>/images/yamii.app.96.png" width="96" /></a>
				</div>
				<div style="font-size:16px; line-height:24px;">
					<?php echo BUtils::T('yb_go_user_site_msg'); ?>
				</div>
				<div class="clear" style="padding-top:12px;"></div>
				<div class="right" style="margin-left:12px;">
					<?php echo BUtils::T('yb_go_facebook_msg'); ?>
					<br />
					<a href="http://www.facebook.com/yamiideal" target="_blank"><img src="<?php echo Yii::app()->baseUrl; ?>/images/facebook_page.png" width="120" /></a>
				</div>
				<div style="font-size:16px; line-height:24px;">
				</div>
				<div class="clearfix"></div>
			</div>
		</div>
	</div>
</div>